import axios from '@/libs/api.request'

    //意见反馈反馈
export const feedBack = (data) => {
    return axios.request({
        url: '/system/opinion',
        data: data,
        method: 'post'
    })
}
//消息中心
export const getMsg = (data) => {
    return axios.request({
        url: '/notification/history',
        params: data,
        method: 'get'
    })
}
//消息设为已读
export const readMsg = () => {
    return axios.request({
        url: '/notification/read',
        method: 'patch'
    })
}
//查询借款详情
export const orderDetail = (data) => {
    return axios.request({
        url: '/order/detail' + '/' + data['orderId'],
        method: 'get'
    })
}
//帮助中心
export const helpCenter = () => {
    return axios.request({
        url: '/system/help/center',
        method: 'get'
    })
}
//帮助中心点击有用无用
export const helpCenterChose = (data) => {
    return axios.request({
        url: '/system/help/center/chose',
        data: data,
        method: 'patch'
    })
}
//帮助中心获取联系方式
export const getContact = () => {
    return axios.request({
        url: '/system/help/contact',
        method: 'get'
    })
}
//借款合同信息
export const getContractParam2 = (data) => {
    return axios.request({
        url: '/contract/getLoanContractParam' + '/' + data['orderId'],
        method: 'get'
    })
}
//埋点
export const event = (data) => {
    return axios.request({
        url: '/event',
        data: data,
        method: 'post'
    })
}

//GET /repayment/detail查询轮渡还款详情
export const getLDRepayDetail = (params, uid) => {
    return axios.request({
        url: '/repayment/detail',
        method: 'get',
        params,
        header: {
            'g4-uid': uid
        }
    })
}

//GET 查询支持的还款银行或便利店code
export const getLDCodeMap = (uid) => {
    return axios.request({
        url: '/repayment/codemap',
        method: 'get',
        header: {
            'g4-uid': uid
        }
    })
}
